




/**
 * 获取学生类别名称
 */
const getPclassName =(pclassId:string|undefined)=>{

    if(pclassId){
        var start = pclassId.substring(0,1);
        if(start == "1")return '博士生'
        if(start == "2")return '硕士生'
        if(start == "3" || start == "6" || start == "7")return '本科生'
        if(start == "4")return '职教生'
        if(start == "5")return '成教生'
    }

    return ''
}

/**
 * 获取学生学籍状态名称
 * @param statusId 
 */
const getStatusName = (statusId:string|undefined)=>{
    var name = ''
    
    if("01" == statusId)name = "在学";
    if("02" == statusId)name = "试读";
    if("03" == statusId)name = "公派出国";
    if("09" == statusId)name = "助学金期间";
    if("11" == statusId)name = "休学";
    if("12" == statusId)name = "保资格";
    if("13" == statusId)name = "保学籍";
    if("14" == statusId)name = "转博";
    if("15" == statusId)name = "结业";
    if("16" == statusId)name = "肆业";
    if("17" == statusId)name = "转硕士";

    if("21" == statusId)name = "转学";
    if("22" == statusId)name = "退学";
    if("23" == statusId)name = "取消学籍";
    if("24" == statusId)name = "停学";
    if("25" == statusId)name = "取消入学";
    if("26" == statusId)name = "放弃入学资格";

    if("31" == statusId)name = "毕业";
    if("91" == statusId)name = "重复";
    if("93" == statusId)name = "未入学";
    if("94" == statusId)name = "不录";
    if("95" == statusId)name = "待注册";
    if("97" == statusId)name = "非在校";
    if("98" == statusId)name = "出国";
    if("99" == statusId)name = "离校";

 
    return name;
}

export {
    getPclassName,getStatusName
}